<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%
	String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link href="<%=path %>/css/style.css" rel="stylesheet" type="text/css"/>
<link href="<%=path %>/css/flexslider.css" rel="stylesheet" type="text/css"/>
</head>

<body>
	<sx:div id="sc">
	<s:actionmessage/>
	<s:iterator value="#session.car" var="o">
		<div class="orders">
			<li class="ordersLeft"><img src="<%=path%>/images/food/${o.food.pic}" alt="餐品图片" /></li>
			<li class="ordersRight">
				<p class="title">${o.food.name }</p>
				<p class="fenlei">份数：${o.count}</p> 
				<s:if test="#o.food.foodClass ==3"><p class="jiage">￥${o.food.favPrice }元</p></s:if>
			  <s:else><p class="jiage">￥${o.food.price }元</p></s:else>
			</li>
			
			<li><sx:a href="/food/web/order!delFoodFromCar?delFid=%{#o.food.id}" targets="sc"><img src="<%=path%>/images/kick.png" class="kick" /></sx:a></li>
		</div>
		<div class="decoration"></div>
	</s:iterator>
	<div style="text-align:center; color:#C00; margin:5px 0">您已选定${foodSum }个菜，共计${totalPrice }元。</div>
	<div style="text-align:center">
		<a href="/food/web/order!addOrder" class="button green">确定点餐</a>
	</div>
	
	<br/><br/>
	<s:iterator value="#session._car" var="o">
		<div class="orders">
			<li class="ordersLeft"><img src="<%=path%>/images/food/${o.food.pic}" alt="餐品图片" /></li>
			<li class="ordersRight">
				<p class="title">${o.food.name }</p>
				<p class="fenlei">份数：${o.count}</p> 
				<s:if test="#o.food.foodClass ==3"><p class="jiage">￥${o.food.favPrice }元</p></s:if>
			  <s:else><p class="jiage">￥${o.food.price }元</p></s:else>
			</li>
		</div>
		<div class="decoration"></div>
	</s:iterator>
	<s:if test='#session._foodSum!=null && #session._foodSum!=""'>
	<div style="text-align:center; color:#C00; margin:5px 0">您已点了${_foodSum }个菜，共计${_totalPrice }元。</div>
	</s:if>
	<br/><br/><br/><br/>
	</sx:div>
</body>
</html>
